<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>
    let x = [{
      name: 'autumn'
    }]
    let y = {
      name: 'wscats'
    }
    let z = [...x, y];
    console.log(z);
    const todo = { name: 'Clean the dishes' };
    const state = { completed: false };
    const nextTodo = { name: 'Ironing' };
    const merged = { ...todo, ...state, ...nextTodo };
    // const merged1 = [ ...todo, ...state, ...nextTodo ];
    console.log(merged);
    // console.log(merged1);测试仓库位置
  </script>
</body>

</html>